home *** CD-ROM | disk | FTP | other *** search
Wrap
XSetup plugin | 2001-03-28 | 3.8 KB | 143 lines
"FILE"="Xteq Systems X-Setup Plugin 5.0" "TYPE"="6" "COUNT"="2" "UIPATH"="Appearance\Files&Folders\ANY file" "NAME"="Any File Context Menu Options #1" "VERSION"="2.06" "LANGUAGE"="VBScript" "TEXT 1"="Enable "QuickView..." for any file" "TEXT 2"="Enable "Open with..." for any file" "DESCRIPTION 1"="If you activate "Enable QuickView for any file", you can right-click any file and select "QuickView" from the appearing menu to have a look on it. Windows 2000 and Windows Millennium do not support this option, but you can install Quick View Plus instead." "DESCRIPTION 2"="WARNING: If this option is activated and you are using the Microsoft Office Shortcut Bar, the Shortcut Bar may not work correctly any longer. In this case, deactivate this option again and restart your PC." "DESCRIPTION 3"="Enable "Open with..." to easily change which program is used to open a file (by default, you need to hold down SHIFT and right-click a file to display this item). If it's activated, this option is automatically visible on the right-click menu." "AUTHOR"="Xteq Systems" "CONTACTURL"="http://www.xteq.com" "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved" "COMMENT 1"="George W. Bush sucks!" bQE=true bDH=true bDH2=true Sub Plugin_Initialize s=RegReadValue("HKCR\*\QuickView\@") if s="*" then SetUIElement 1,true else bQE=false end if s=RegReadValue("HKCR\*\Shell\openas\command\@") if not IsEmpty(s) then SetUIElement 2,true else SetUIElement 2,false end if s=RegReadValue("HKCR\Directory\Shell\DosHere\Command\@") 'Call DebugMsg(s) if Len(s)>0 then SetUIElement 3,true else bDH=false end if s=RegReadValue("HKCR\Drive\Shell\DosHere\Command\@") 'Call DebugMsg(s) if Len(s)>0 then SetUIElement 4,true else bDH2=false end if End Sub Sub Plugin_CheckData(ElementIndex) End Sub Sub Plugin_Apply(ElementIndex,ElementSubIndex) bW9x=false if GetWinVer=1 or GetWinVer=3 or GetWinVer=5 then 'Windows 95/98/ME bW9x=true end if b=GetUIElement(1) if b=true then Call RegWriteValue("HKCR\*\QuickView\@","*",1) else if bQE=true then Call RegDeletePath("HKCR\*\QuickView") end if end if b=getuielement(2) if b=true then call RegWriteValue("HKCR\*\Shell\openas\command\@","rundll32.exe shell32.dll,OpenAs_RunDLL ""%1""",1) call RegWriteValue("HKCR\*\Shell\openas\@","Open with...",1) else 'delete! lts of work! if RegPathExists("HKCR\*\Shell\openas\command") then Call RegDeletePath("HKCR\*\Shell\openas\command") end if if RegPathExists("HKCR\*\Shell\openas") then Call RegDeletePath("HKCR\*\Shell\openas") end if end if s="" b=GetUIElement(3) if b=true then if bW9x=true then s=GetWinDir s=s & "command.com /k cd ""%1""" else 'Windows NT/2000 s=GetWinSysDir s=s & "cmd.exe /k cd ""%1""" end if Call RegWriteValue("HKCR\Directory\Shell\DosHere\@","DOS &Prompt Here",1) Call RegWriteValue("HKCR\Directory\Shell\DosHere\Command\@",s,1) else 'Disable it! if bDH=true then Call RegDeletePath("HKCR\Directory\Shell\DosHere\Command") Call RegDeletePath("HKCR\Directory\Shell\DosHere") end if end if s="" b=GetUIElement(4) if b=true then if bW9x=true then 'Windows 95/98/ME s=GetWinDir s=s & "command.com /k cd ""%1""" else 'Windows NT/2000 s=GetWinSysDir s=s & "cmd.exe /k cd ""%1""" end if Call RegWriteValue("HKCR\Drive\Shell\DosHere\@","DOS &Prompt Here",1) Call RegWriteValue("HKCR\Drive\Shell\DosHere\Command\@",s,1) else 'Disable it! if bDH2=true then Call RegDeletePath("HKCR\Drive\Shell\DosHere\Command") Call RegDeletePath("HKCR\Drive\Shell\DosHere") end if end if End Sub Sub Plugin_Terminate End Sub